<?php

namespace App\Observers;

use App\Models\Student;


class StudentObserver
{
    public function deleted(Student $student)
    {
        \DB::table('gamelogs')->where('student_id', $student->id)->delete();
    }
}